import request from '@/utils/request'

export function getAdmin(query) {
  return request({
    url: '/admin/index',
    method: 'get',
    params: query
  })
}

export function addAdmin(query) {
  return request({
    url: '/admin/save',
    method: 'post',
    params: query
  })
}

export function updateAdmin(query) {
  return request({
    url: `/admin/edit`,
    method: 'post',
    params: query
  })
}

export function deleteAdmin(query) {
  return request({
    url: `/admin/delete`,
    method: 'post',
    params: query
  })
}
